<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title></title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<script type="text/javascript" src="system/js/public.js"></script>
<link href="system/plugins/validateMyForm/css/plugin.css" rel="stylesheet" type="text/css">
 <script type="text/javascript" src="system/js/jquery-1.4.2.js"></script>
 <script type="text/javascript" src="system/js/json2.js"></script>
 <script type="text/javascript" src="system/js/verify1.js"></script>
 <script type="text/javascript" src="system/plugins/validateMyForm/js/jquery.validateMyForm.1.5.js"></script>
<script type="text/javascript" src="system/js/DatePicker/WdatePicker.js"></script>
 <script type="text/javascript">  
	$(document).ready(function(){ 
	   
	   var now= new Date();  
	   var year=now.getFullYear();  
	   var month=now.getMonth()+1;  
	   var day=now.getDate();  
	   var nowdate=year+"-"+month+"-"+day;  
	   $("#djRq").val(nowdate);
	   //onblur="verAndGenJosn('system/ajax/transfor.do?method=listByNsrbm',this)"
	   $("#nsrbm").bind("blur",function(){
		   verAndGenJosn('system/ajax/transfor.do?method=listByNsrbm',this);
	   });
	 //  var test=$("#djztDm").val();
	   if($("#czlbDm").val()=="02"){
		   $("#sfzhm").addClass("required");
		   $("#czProperty").text("车主名称：");
	    	$("#grOrdw").show();
	    	$("#grOrdwval").show();
	    	$("#nsrbm").unbind("blur");
	    	$("#form1").validateMyForm();
	    	return;
	    }	
	  $("#sfzhm").removeClass("required");
	  $("#form1").validateMyForm();
	  return;
  	}); 

</script>  
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 车船过户</div>
	<div class="mainbody">
		<div class="operate_info">操作说明：带 * 号必填</div>
		<div style="font-size:20px;font-weight:bold;color: blue">旧车主信息：</div>
		<div>
			<mytag:View table="com.zhongkai.model.book.TDjCcdjxx" id="${param.ccdjh}" name="tDjCcdjxx"></mytag:View>
			<mytag:List table="TDmCcsJjcclx" name="tTDmCcsJjcclxList"></mytag:List>
			<mytag:List table="TDmCcsCzlb" name="tDmCcsCzlbList"></mytag:List>
			<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form" >
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车主类别：</td>	
						<mytag:View table="com.zhongkai.model.book.TDmCcsCzlb" id="${tDjCcdjxx.czlbDm}" name="tDmCcsCzlb" entityStringId="true"></mytag:View>
						<td><input name="czlbDm" readonly value="${tDmCcsCzlb.czlbMc}"/><!-- 需要显示名称,车主类别代码对应的名称 -->
						</td>
						<td  align="right">登记状态：</td>
						<mytag:View table="com.zhongkai.model.book.TDmCcsDjzt" id="${tDjCcdjxx.djztDm}" name="tDmCcsDjzt" entityStringId="true"></mytag:View>
						
						<td><input name="djztMc"  readonly value="${tDmCcsDjzt.djztMc }"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">纳税人编码：</td>
						<td><input name="nsrbm" readonly value="${tDjCcdjxx.nsrbm}"/></td>
						<td  align="right">车船登记号：</td>
						<td><input name="ccdjh" id="ccdjh" readonly value="${tDjCcdjxx.ccdjh}"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">个人名称：</td>
						<td><input name="czMc" readonly value="${tDjCcdjxx.czMc}"/></td>
						<td  align="right">身份证号码：</td>
						<td><input name="sfzhm" readonly value="${tDjCcdjxx.sfzhm}"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">地址：</td>
						<td><input name="czDz" readonly value="${tDjCcdjxx.czDz}"/></td>
						<td  align="right">电话：</td>
						<td><input name="czDh" readonly value="${tDjCcdjxx.czDh}"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车船牌照号码：</td>
						<td><input name="ccpzh" id="ccpzh" readonly value="${tDjCcdjxx.ccpzh}"/></td>
						<td  align="right">车船类型：</td>
						<mytag:View table="com.zhongkai.model.book.TDmCcsJjcclx" id="${tDjCcdjxx.jjcclxDm}" name="tDmCcsJjcclx" entityStringId="true"></mytag:View>
						<td><input name="jjcclxDm" id="jjcclxDm" readonly value="${tDmCcsJjcclx.jjcclxMc}"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">发动机号：</td>
						<td><input name="fdjh" id="fdjh" readonly value="${tDjCcdjxx.fdjh}"/></td>
						<td  align="right">车架号：</td>
						<td><input name="cjh" id="cjh" readonly value="${tDjCcdjxx.cjh}"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">厂牌型号：</td>
						<td><input name="cpxh" id="cpxh" readonly value="${tDjCcdjxx.cpxh}"/></td>
						<td  align="right">购置时间：</td>
						<td><input name="gzRq" id="gzRq" readonly value="<fmt:formatDate type="date" pattern="yyyy-MM-dd" value="${tDjCcdjxx.gzRq}" />"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">核定载重量(吨)：</td>
						<td><input name="hdzzl" id="hdzzl" readonly value="${tDjCcdjxx.hdzzl}"/></td>
						<td  align="right">核定载客量(人)：</td>
						<td><input name="hdzkl" id="hdzkl" readonly value="${tDjCcdjxx.hdzkl}"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">整备质量(吨)：</td>
						<td><input name="zbzl" id="zbzl" readonly value="${tDjCcdjxx.zbzl}"/></td>
						<td  align="right">排气量：</td>
						<td><input name="pql" id="pql" readonly value="${tDjCcdjxx.pql}"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">登记日期：</td>
						<td><input name="djRq"  readonly value="<fmt:formatDate type="date" pattern="yyyy-MM-dd" value="${tDjCcdjxx.djRq}" />"/></td>
						<td  align="right">行驶证发证日期：</td>
						<td><input name="fzRq" id="fzRq" readonly value="<fmt:formatDate type="date" pattern="yyyy-MM-dd" value="${tDjCcdjxx.fzRq}" />"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">免税：</td>
						<td><input name="msBj" id="msBj" readonly value="${tDjCcdjxx.msBj}"/></td>
						<td  align="right">申报起始年月：</td>
						<td><input name="sbqsny"  readonly value="${tDjCcdjxx.sbqsny}"/></td>
					</tr>
					
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" >
						<td align="right">备注：</td>
						<td colspan="3">
							<textarea name="bz" id="bz" cols="50" rows="3" readonly >${tDjCcdjxx.bz}</textarea>
						</td>
					</tr>
				</table>
		</div>
		<div style="font-size:20px;font-weight:bold;color: blue">新车主信息：</div>
		<div class="table">			
			<form id="form1" action="system/book/transfor_save.do" method="post">
				<input type="hidden" name="tDjCcdjxxLsccdjh" value="${tDjCcdjxx.ccdjh}">
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form" >
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车主类别：</td>
						<td>
							<select id="czlbDm" name="czlbDm" onchange="czlbChange()">
								<logic:iterate id="tDmCcsCzlb" name="tDmCcsCzlbList">
								<c:if test="${tDmCcsCzlb!=null&&tDmCcsCzlb.czlbDm!=null }">
									<c:if test="${tDmCcsCzlb.czlbDm==tDjCcdjxx.czlbDm}">
										<option value="${tDmCcsCzlb.czlbDm}" selected>${tDmCcsCzlb.czlbMc }</option>
									</c:if>
									<c:if test="${tDmCcsCzlb.czlbDm!=tDjCcdjxx.czlbDm}">
										<option value="${tDmCcsCzlb.czlbDm}">${tDmCcsCzlb.czlbMc }</option>
									</c:if>
								</c:if>
								</logic:iterate>
							</select>
							
							
							
							&nbsp;<span style="color:red">*</span>
						</td>
						<td  align="right">登记状态：</td>
						<input type="hidden" id="djztDm" name="djztDm" value="${tDmCcsDjzt.djztDm}"/>
						<td><input name="djztMc" id="djztMc" readonly="readonly" value="${tDmCcsDjzt.djztMc }"></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">纳税人编码：</td>
						<td><input name="nsrbm" id="nsrbm" class="required" />&nbsp;<span style="color:red">*</span></td>
						<td  align="right">车船登记号：</td>
						<td><input name="ccdjh" id="ccdjh" readonly value="<mytag:sequence key="ccdjxx_seq" />"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right"><span id="czProperty">公司名称：</span></td>
						<td><input name="czMc" id="czMc" class="required"/>&nbsp;<span style="color:red">*</span></td>
						<td  align="right"><span id="grOrdw" style="display: none">身份证号码：</span></td>
						<td><span id="grOrdwval" style="display: none"><input name="sfzhm" id="sfzhm" onblur="checkID(this)"/>&nbsp;<span style="color:red">*</span></span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">地址：</td>
						<td><input name="czDz" id="czDz" class="required" />&nbsp;<span style="color:red">*</span></td>
						<td  align="right">电话：</td>
						<td><input name="czDh" id="czDh" class="required numeric" onblur="checkPM(this)"/>&nbsp;<span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车船牌照号码：</td>
						<td>粤T.<input name="ccpzh" id="ccpzh" class="required" onblur="uptocase(this);verify('system/ajax/transfor.do?method=findccpzh',this)"/>&nbsp;<span style="color:red">*</span></td>
						<td  align="right">车船类型：</td>					
						<td>
							<select id="jjcclxDm" name="jjcclxDm" class="required">							
								<option value="" >--请选择--</option>
								<logic:iterate id="tTDmCcsJjcclx" name="tTDmCcsJjcclxList">
									<c:if test="${tTDmCcsJjcclx!=null&&tTDmCcsJjcclx.jjcclxDm!=null }">
										<c:if test="${tTDmCcsJjcclx.jjcclxDm==tDjCcdjxx.jjcclxDm}">
											<option value="${tTDmCcsJjcclx.jjcclxDm}" selected>${tTDmCcsJjcclx.jjcclxMc}</option>
										</c:if>
										<c:if test="${tTDmCcsJjcclx.jjcclxDm!=tDjCcdjxx.jjcclxDm}">
											<option value="${tTDmCcsJjcclx.jjcclxDm}">${tTDmCcsJjcclx.jjcclxMc}</option>
										</c:if>
									</c:if>
								</logic:iterate>
							</select>
							&nbsp;<span style="color:red">*</span>
						</td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">发动机号：</td>
						<td><input name="fdjh" id="fdjh" value="${tDjCcdjxx.fdjh}" class="required"/>&nbsp;<span style="color:red">*</span></td>
						<td  align="right">车架号：</td>
						<td><input name="cjh" id="cjh" value="${tDjCcdjxx.cjh}" class="required"/>&nbsp;<span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">厂牌型号：</td>
						<td><input name="cpxh" id="cpxh" class="required" value="${tDjCcdjxx.cpxh}"/>&nbsp;<span style="color:red">*</span></td>
						<td  align="right">购置时间：</td>
						<td><input name="gzRq" id="gzRq" onFocus="new WdatePicker(this,'%Y-%M-%D',true,'default')" value="<fmt:formatDate type="date" pattern="yyyy-MM-dd" value="${tDjCcdjxx.gzRq}" />" readOnly class="required date"/>&nbsp;<span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">核定载重量(吨)：</td>
						<td><input name="hdzzl" id="hdzzl" class="required" value="${tDjCcdjxx.hdzzl}"/>&nbsp;<span style="color:red">*</span></td>
						<td  align="right">核定载客量(人)：</td>
						<td><input name="hdzkl" id="hdzkl" value="${tDjCcdjxx.hdzkl}" class="required"/>&nbsp;<span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">整备质量(吨)：</td>
						<td><input name="zbzl" id="zbzl" class="required" value="${tDjCcdjxx.zbzl}"/>&nbsp;<span style="color:red">*</span></td>
						<td  align="right">排气量：</td>
						<td><input name="pql" id="pql" value="${tDjCcdjxx.pql}" class="required"/>&nbsp;<span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">免税：</td>
						<td><input name="msBj" id="msBj" readonly value="${tDjCcdjxx.msBj}"/></td>
						<input type="hidden" id="sbqsnyStr" value="${tDjCcdjxx.sbqsny}"/>
						<td  align="right">申报起始年月：</td>
						<td><input name="sbqsny" id="sbqsny" readonly value="${tDjCcdjxx.sbqsny}"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">过户时间：</td>
						<td colspan="3"><input name="ghRq" id="ghRq" onFocus="new WdatePicker(this,'%Y-%M-%D',true,'default')" onblur="verTransfDateValuble()" readonly class="required date"/>&nbsp;<span style="color:red">*</span></td>
						
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">登记日期：</td>
						<td><input name="djRq" id="djRq"  readonly class="date"/>&nbsp;<span style="color:red">*</span></td>
						<td  align="right">行驶证发证日期：</td>
						<td><input name="fzRq" id="fzRq" onFocus="new WdatePicker(this,'%Y-%M-%D',true,'default')" readonly class="required date"/>&nbsp;<span style="color:red">*</span></td>
					</tr>
					
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)" >
						<td align="right">备注：</td>
						<td colspan="3">
							<textarea name="bz" id="bz" cols="50" rows="3" ></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="4" class="form_button" style="padding-top:10px;">
							<c:if test="${tDmCcsDjzt.djztDm=='01'}">
								<input  id="save" type="submit" value="保存" />
								<input id="saveAndSb" type="button" value="保存并申报" />
							</c:if>
							<input type="button" value="返回" onclick="javascript:location.href='system/search/unisearch.jsp?module=book/transforform.jsp'"/>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
</body>
</html>
